<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="libs/element/index.css">
    <script src="libs/element/index.js"></script>
    <script src="libs/jquery-3.6.0.min.js"></script>

</head>
<body>

<div id="app">

    <div id="list-complete-demo" class="demo">
        <button @click="shuffle">Shuffle</button>
        <button @click="add">Add</button>
        <button @click="remove">Remove</button>
        <transition-group name="list-complete" tag="p">
    <span
            v-for="item in items"
            v-bind="item"
            class="list-complete-item"
    >
      {{ item }}
    </span>
        </transition-group>
    </div>
</div>

<script type="text/javascript">

    new Vue({
        el: 'app',
        data: {
            items: [1,2,3,4,5,6,7,8,9,0]
        },
        created() {

        },
        methods: {
            shuffle(arr) {
                let result = [],
                    random;
                while(arr.length>0){
                    random = Math.floor(Math.random() * arr.length);
                    result.push(arr[random])
                    arr.splice(random, 1)
                }
                this.items = result;
            }
        }

    })

</script>
</body>
</html>